using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.DirectX.DirectDraw;

namespace Zsa.Emulation.Render.Video.Gdi
{
    /// <summary>
    /// Gdi graphics render caps class.
    /// </summary>
    public class GdiRenderCapabilities : GraphicRenderCapabilities
    {
        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="T:D3dRenderCapabilities"/> class.
        /// </summary>
        public GdiRenderCapabilities()
            : base ( 1 )
        {
        }
        #endregion Constructor

        #region Methods
        /// <summary>
        /// Creates the settings for the item.
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        public override GraphicRenderSettings CreateSettings(RenderDeviceItem item)
        {
            return new GdiRenderSettings(item);
        }
        #endregion Methods

        #region Properties
        /// <summary>
        /// Gets the devices supported by the render.
        /// </summary>
        /// <returns></returns>
        public override IList<RenderDeviceItem> GetDevices()
        {
            return new RenderDeviceItem[]
            {
                DefaultDevice
            };
        }

        /// <summary>
        /// Gets the default device.
        /// </summary>
        /// <value></value>
        public override RenderDeviceItem DefaultDevice
        {
            get
            {
                return new RenderDeviceItem(
                    "Gdi Screen 0",
                    "Screen 0",
                    RenderDeviceType.Video,
                    0
                    );
            }
        }
        #endregion Properties
    }
}
